Skip to content

Minor cleanup#125

Merged
cowtowncoder merged 4 commits into
FasterXML:masterfrom
goncalossilva:minor_cleanup
Jan 25, 2014
Merged

Minor cleanup#125
cowtowncoder merged 4 commits into
FasterXML:masterfrom
goncalossilva:minor_cleanup

Conversation

@goncalossilva

Copy link
Copy Markdown
Contributor

While checking the code to implement #124, I found a few things that could be optimized, namely:

  1. A couple of manual array copies
  2. Usage of StringBuffer where StringBuilder would suffice, or StringBuilder where String would suffice
  3. Redundant casts

While all of this is just polish, I think there's a lot to gain from the first point, fixed in 9580482.

Synchronization is not needed in this static context.
There are no advantages here, only disadvantages.
This approach is more efficient.
cowtowncoder added a commit that referenced this pull request Jan 25, 2014
@cowtowncoder
cowtowncoder merged commit 0e791ab into FasterXML:master Jan 25, 2014
@cowtowncoder

Copy link
Copy Markdown
Member

Makes sense, thanks!

@goncalossilva

Copy link
Copy Markdown
Contributor Author

No problem, happy to help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants